
<div class="pageContent">
	<form method="post" action="__URL__/edit/id/{$info.id}" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="adder" value="{$Think.session.authId}" />
		<input type="hidden" name="user_id" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>
		<input type="hidden" name="id" value="{$info.id}" />
		<div class="pageFormContent" layoutH="58">
			
			<div class="unit">
				<label>昵称：</label>
				<input type="text" class="required" name="nickname" value="{$info.nickname}">
			</div>
			<div class="unit">
				<label>邮箱：</label>
				<input type="text" class="required" name="email" value="{$info.email}">
			</div>

			<div class="unit">
				<label>状态：</label>
				<select class="small bLeft"  name="status">
					<option <eq name="info.status" value="1" >selected</eq> value="1">启用</option>
					<option <eq name="info.status" value="0" >selected</eq> value="0">禁用</option>
				</select>
			</div>
			
			<div class="unit">
				<label>备  注：</label>
				<textarea class="large bLeft"  name="remark" rows="5" cols="57">{$info.remark}</textarea>
			</div>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>

<script>
$(function(){
	// 城市数据联动选择框
	$('#province').change(function(){
		var pid   = $(this).val();
		op  = '';
		$.ajax({
		   type: "POST",
		   url: "__MODULE__/PosterMan/getCity",
		   data: {'id':pid},
		   success: function(data){
		     $.each(data,function(i,n){
		     	if(n.name != '省直辖行政单位'){
		     		op += '<option value="'+n.id+'">'+n.name+'</option>';
		     		$('#cc').html(op);
		     	}
		     })
		   },
		   dataType: 'json'
		});
	});
});
</script>
